package com.kungkhies.mvc.restless;

import java.util.Map;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;
import org.springframework.web.bind.annotation.RequestParam;

import com.kungkhies.services.kungkher.KungkherService;

@Controller
public class ShowKungkherController
{
    @RequestMapping(value = "/showKungkher", //<co id="co_verbyUrl"/>  
    method = RequestMethod.GET)
    public String showKungkher(@RequestParam String username, //<co id="co_usernameParam"/> 
            Map<String, Object> model)
    {
        model.put("kungkher", kungkherService.getKungkher(username));
        return "kungkher";
    }
    @Autowired
    KungkherService kungkherService;
}
